All Questions
Tagged with ruby-on-railsdevise
13,002 questions
0votes
0answers
40views
After Rails update from 6 to 7, Devise flash messages are not available anymore (Turbolinks disabled)
My Rails app uses Devise (4.9.4) and CanCanCan (3.6.1). I just updated it to version Rails version 7. Since then, the flash messages do not appear anymore when registering as a new user. I have found ...
0votes
0answers
42views
non-standard way of logging in user with devise (including confirmable)
An application has the motive to register a user via a distinct process that diverges from the one defined by default by devise (invoking the registrations_controller). The process would be to create ...
0votes
1answer
32views
Redirect takes desktop viewport after successful google oauth login
I am using Devise for google oauth. When I sign in via mobile on web browser, after successful authentication I get redirected with desktop view. class Reactors::OmniauthCallbacksController < ...
-1votes
1answer
129views
Recaptcha "ERROR for site owner: Invalid key type"
I am trying to put Google recaptcha on the "password forgotten" screen users/password/new. I set up the keys on my development, staging and production machines in a .env file as per ...
1vote
1answer
73views
devise and language by multiple domain
I'm trying to use multi language by domain, for example I have domain.fi.local for language Finnish and domain.es.local for language Spanish and on every of them you can switch to English and I have ...
0votes
1answer
42views
Devise send_reset_password_instructions invalid token in Active Admin Rails
I have this problem in ActiveAdmin. When I try to reset a user's password with devise send_reset_password_instructions. member_action :reset_password, method: :get do resource....
0votes
0answers
74views
Using omniauth for SSO and offline_access with Devise in Rails 8
I have a Rails 8 application where I'm currently using Omniauth + Devise to handle SSO with Microsoft. I also want to allow a logged-in user to perform a separate authorization of a Microsoft app ...
1vote
0answers
93views
Rails 7 with Device Token Auth (1.2.5) Returns Completed 401 Unauthorized after Successfully Login
I'm currently using Rails 7 and devise_token_auth (1.2.5). We use all the default settings from devise_token_auth and it's been working perfectly. Here is our session controller code: class Api::V1::...
0votes
0answers
62views
(Rails, devise) Session not persisting in Firefox ONLY?
So I have a truly bizarre problem and I appreciate any help with it. I have a Rails app (7.0.8.4) that uses devise (4.9.3) to manage session handling. Typically, when a new account is created, the ...
0votes
0answers
75views
Adding custom parameters to devise registration - Insert is not complete
I'm trying to add some customs parameters to a devise class. I configured registrations_controller with the method: def configure_sign_up_params devise_parameter_sanitizer.permit(:sign_up, keys: ...
-3votes
1answer
120views
Rails Devise Strong Parameters not building Nested Association
I did generated devise controllers and views and defined both User and Account models like the following: User class User < ApplicationRecord # Include default devise modules. Others available ...
1vote
1answer
116views
run time error while running tests in rails
versions: > ruby -v ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [arm64-darwin24] > rails -v Rails 8.0.0.1 user.rb model: class User < ApplicationRecord devise :database_authenticatable, :...
0votes
0answers
42views
RSpec: login_as not working after switching to shallow nesting
I'm switching to shallow nesting of Assets (belonging to Entity), and I'm rewriting request specs. For the new shallow routes (e.g. '/assets/1', which was '/entities/1/assets/1'), login_as fails. It ...
0votes
0answers
56views
Rspec request test with omniauth doesn't call destroy method when sign out is called
I have a rails 6.1.7 project with omniauth + devise and a custom openid connect server that I'm connecting to. I'm trying to write a rspec request test for the log out feature with some logic in the ...
0votes
0answers
111views
Rails 8 Devise and OAuth Issue: Login Page Reappears After Back Button, Raises InvalidAuthenticityToken
I’m using Rails 8 with Devise for authentication and have encountered an issue with OAuth (Google, GitHub) sign-in behavior. Here’s the observed behavior: Good Working Scenario: Email Sign-In When a ...